home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / soft / development / Macromedia RoboHelp X5 / RoboHelpOffice.exe / Data1.cab / _88E0A91171B84AE6AD3F5E7DAAB3DA3E < prev    next >
Encoding:
Text File  |  2001-11-08  |  4.7 KB  |  134 lines

  1. <html>
  2. <head>
  3. <title>Search Form</title>
  4. <!--% WH_PROJECT_METATAGS %-->
  5. </head>
  6. <style>
  7. <!--
  8. body {margin:0;}
  9. -->
  10. </style>
  11. <body bgcolor="#c0c0c0">
  12. <script language="javascript" src="<!--%SF_VERSION_JS%-->"></script>
  13. <script language="javascript1.2" src="<!--%SF_MESSAGE_JS%-->"></script>
  14. <script language="javascript1.2" src="<!--%SF_PROXY_JS%-->"></script>
  15. <script language="javascript1.2" src="<!--%SF_UTILS_JS%-->"></script>
  16. <script language="javascript1.2" src="<!--%SF_WHFORM_JS%-->"></script>
  17. <script language="javascript1.2">
  18. <!--
  19. var gstrInput = "";
  20. function ftsLookup(bCR)
  21. {
  22.     if (bCR)
  23.     {
  24.         var strInput = document.FtsInputForm.keywordField.value.toUpperCase();
  25.         if (strInput != "") {
  26.             var oMsg = new whMessage(WH_MSG_SEARCHFTSKEY, this, 1, strInput);
  27.             if (!SendMessage(oMsg))
  28.             {
  29.                 gstrInput = strInput;
  30.             }
  31.             else
  32.                 gstrInput = "";
  33.         }
  34.  
  35.         if (gbMac) {
  36.             document.FtsInputForm.keywordField.focus();
  37.         }
  38.     }
  39.     return;
  40. }
  41.  
  42. function beforeInit()
  43. {
  44.     var oParam = new Object();
  45.     oParam.sValue = "";
  46.     var oMsg = new whMessage(WH_MSG_GETSEARCHS, this, 1, oParam);
  47.     if (SendMessage(oMsg))
  48.     {
  49.         if (oParam.sValue != "" && oParam.sValue != "%%% WH_LNG_SearchPrompt %%%")
  50.         {
  51.             document.FtsInputForm.keywordField.value = oParam.sValue;
  52.             gfunLookUp(true);
  53.         }
  54.     }
  55.     init();    
  56. }
  57.  
  58. function window_unload()
  59. {
  60.     UnRegisterListener2(this, WH_MSG_SHOWTOC);
  61.     UnRegisterListener2(this, WH_MSG_SHOWIDX);
  62.     UnRegisterListener2(this, WH_MSG_SHOWFTS);
  63.     UnRegisterListener2(this, WH_MSG_SHOWGLO);
  64.     UnRegisterListener2(this, WH_MSG_SEARCHTHIS);
  65.     UnRegisterListener2(this, WH_MSG_BACKUPSEARCH);
  66. }
  67.  
  68. function onSendMessage(oMsg)
  69. {
  70.     if (oMsg.nMessageId == WH_MSG_SHOWFTS)
  71.     {
  72.         document.FtsInputForm.keywordField.focus();
  73.     }
  74.     else if (oMsg.nMessageId == WH_MSG_SHOWIDX ||
  75.         oMsg.nMessageId == WH_MSG_SHOWTOC || 
  76.         oMsg.nMessageId == WH_MSG_SHOWGLO)
  77.     {
  78.         document.FtsInputForm.keywordField.blur();
  79.     }
  80.     else if (oMsg.nMessageId == WH_MSG_SEARCHTHIS)
  81.     {
  82.         if (oMsg.oParam != "%%% WH_LNG_SearchPrompt %%%")
  83.         {
  84.             document.FtsInputForm.keywordField.value = oMsg.oParam;
  85.             gfunLookUp(true);
  86.         }
  87.     }
  88.     else if (oMsg.nMessageId == WH_MSG_BACKUPSEARCH)
  89.     {
  90.         if (gstrInput)
  91.         {
  92.             oMsg.oParam = gstrInput;
  93.             gstrInput = "";
  94.             return false;
  95.         }
  96.     }
  97.     return true;
  98. }
  99.  
  100. if (window.gbWhForm)
  101. {
  102.     RegisterListener2(this, WH_MSG_SHOWTOC);
  103.     RegisterListener2(this, WH_MSG_SHOWIDX);
  104.     RegisterListener2(this, WH_MSG_SHOWFTS);
  105.     RegisterListener2(this, WH_MSG_SHOWGLO);
  106.     RegisterListener2(this, WH_MSG_SEARCHTHIS);
  107.     RegisterListener2(this, WH_MSG_BACKUPSEARCH);
  108.     gfunLookUp = ftsLookup;
  109.     gfunInit = null;
  110.     gstrFormName = "FtsInputForm"
  111.     gsTitle = "Type in the word(s) to search for:";
  112.     <!--% WH_WEBSKIN_ReplaceMacros("gsTitle = \"%WH_CUR_LNG.FtsInputPrompt%\";"); %-->
  113.     setGoImage1("%%%WT_DS_SEARCHFORM_GO%%%");
  114.     <!--% WH_WEBSKIN_ReplaceMacros("setBackgroundcolor(\"%WH_WEBSKIN.fts.form.backgroundcolor%\");"); %-->
  115.     <!--% WH_WEBSKIN_ReplaceMacros("setBackground(\"%WH_WEBSKIN.fts.form.background%\");"); %-->
  116.     <!--% WH_WEBSKIN_ReplaceMacros("setBtnType(\"%WH_WEBSKIN.fts.form.mode%\");"); %-->
  117.     <!--% WH_WEBSKIN_ReplaceMacros("setGoImage1(\"%WH_WEBSKIN.toolbars.btn.searchform.form.btn.image%\");"); %-->
  118.     <!--% WH_WEBSKIN_ReplaceMacros("setGoImage2(\"%WH_WEBSKIN.fts.form.btn.image1%\");"); %-->
  119.     <!--% WH_WEBSKIN_ReplaceMacros("setGoImage3(\"%WH_WEBSKIN.fts.form.btn.image2%\");"); %-->
  120.     <!--% WH_WEBSKIN_ReplaceMacros("setGoText(\"%WH_CUR_LNG.FtsBtnText%\");"); %-->
  121.     <!--% WH_WEBSKIN_ReplaceMacros("setFont(\"Title\", \"%WH_WEBSKIN.fts.form.title.font.name%\",\"%WH_WEBSKIN.fts.form.title.font.size%\",\"%WH_WEBSKIN.fts.form.title.font.color%\",\"%WH_WEBSKIN.fts.form.title.font.style%\",\"%WH_WEBSKIN.fts.form.title.font.weight%\",\"%WH_WEBSKIN.fts.form.title.font.decoration%\");"); %-->
  122.     <!--% WH_WEBSKIN_ReplaceMacros("setFont(\"Normal\", \"%WH_WEBSKIN.fts.form.text.normal.font.name%\",\"%WH_WEBSKIN.fts.form.text.normal.font.size%\",\"%WH_WEBSKIN.fts.form.text.normal.font.color%\",\"%WH_WEBSKIN.fts.form.text.normal.font.style%\",\"%WH_WEBSKIN.fts.form.text.normal.font.weight%\",\"%WH_WEBSKIN.fts.form.text.normal.font.decoration%\");"); %-->
  123.     <!--% WH_WEBSKIN_ReplaceMacros("setFont(\"Hover\", \"%WH_WEBSKIN.fts.form.text.hover.font.name%\",\"%WH_WEBSKIN.fts.form.text.hover.font.size%\",\"%WH_WEBSKIN.fts.form.text.hover.font.color%\",\"%WH_WEBSKIN.fts.form.text.hover.font.style%\",\"%WH_WEBSKIN.fts.form.text.hover.font.weight%\",\"%WH_WEBSKIN.fts.form.text.hover.font.decoration%\");"); %-->
  124.     document.write(getFormHTML());
  125.     writeFormStyle();
  126.     window.onload = beforeInit;
  127.     window.onunload=window_unload;
  128. }
  129. else
  130.     document.location.reload();
  131. //-->
  132. </script>
  133. </body>
  134. </html>